<style>

</style>

<?php if (count($files) > 0 && isset($files[0]['filename'])): ?>
        <div class="files">
            <ul>
                <?php
                foreach ($files as $file) :

                    $pices = explode('.', $file['filename']);
                    
                    $this->firephp->log($file['filename']);
                    $ext = $pices[count($pices) - 1];
                    ?>

                    <li>
                        <span> <img src="http://www.cipa-booking.com/cms/assets/icons/pro-documents/<?= $ext ?>_16x16.png"> </span>
                        <a target="_blank" href="<?= CMS_FOLDER . $file['folder_path'] . '/' . $file['filename'] ?>"><?= $file['name'] ?></a>
                    </li>

                <?php endforeach; ?>


            </ul>
        </div>
    <?php endif; ?>